import 'package:changxindianzishangwu/cache/local_cache.dart';
import 'package:changxindianzishangwu/util/colors.dart';
import 'package:changxindianzishangwu/widget/app_bar.dart';
import 'package:common_utils/common_utils.dart';
import 'package:flutter/material.dart';

class BindPhoneMsgPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: TopAppBar(context, "绑定手机号"),
      body: Container(
        color: Colors.white,
        width: double.infinity,
        alignment: Alignment.center,
        child: Column(
          children: <Widget>[
            Container(
              margin: EdgeInsets.only(
                top: 93,
              ),
              child: Image.asset(
                "images/手机1.png",
                height: width(50),
                width: width(50),
                fit: BoxFit.cover,
              ),
            ),
            Container(
              margin: EdgeInsets.only(
                top: 19,
              ),
              child: Text(
                TextUtil.hideNumber(getUserInfo().phone),
                style: TextStyle(
                  fontSize: sp(25),
                ),
              ),
            ),
            Container(
              margin: EdgeInsets.only(
                top: 15,
              ),
              child: Text(
                "你的手机号",
                style: TextStyle(
                    fontSize: sp(15), color: ZdColor.rgba(153, 153, 153, 1)),
              ),
            ),
            ///todo 暂不更换手机号
            // Expanded(
            //   child: Container(
            //     alignment: Alignment.center,
            //     child: InkWell(
            //       onTap: () {
            //         //更换手机号
            //       },
            //       child: Container(
            //         height: 45,
            //         width: width(150),
            //         alignment: Alignment.center,
            //         decoration: BoxDecoration(
            //             borderRadius: BorderRadius.circular(6),
            //             color: ZdColor.rgba(0, 220, 169, 1)),
            //         child: Text(
            //           "更换手机号",
            //           style: TextStyle(fontSize: sp(15), color: Colors.white),
            //         ),
            //       ),
            //     ),
            //   ),
            // )
          ],
        ),
      ),
    );
  }
}
